package com.aboo.dao.impl;

import java.util.List;

import com.aboo.dao.BaseSqlMapDao;
import com.aboo.dao.RRoleUserDao;
import com.aboo.po.Page;
import com.aboo.po.RRoleUserPO;
import com.aboo.pub.constant.Constant;

public class RRoleUserDaoImpl extends BaseSqlMapDao implements RRoleUserDao {

	public Integer save(RRoleUserPO po) throws Exception {
		return (Integer) getSmcTemplate().insert("RRoleUser.insertRRoleUser", po);
	}

	public void delete(Integer id) throws Exception {
		RRoleUserPO tmp = new RRoleUserPO();
		tmp.setId(id);
		tmp.setInUse(Constant.INUSE_NO);
		getSmcTemplate().update("RRoleUser.updateRRoleUser", tmp);
	}

	@Deprecated
	public RRoleUserPO find(RRoleUserPO po) throws Exception {
		return null;
	}

	@Deprecated
	public Integer findCount(RRoleUserPO po) throws Exception {
		return null;
	}

	@Deprecated
	public List<RRoleUserPO> findList(RRoleUserPO po, Page page)
			throws Exception {
		return null;
	}

	@Deprecated
	public void update(RRoleUserPO po) throws Exception {
	}

	public void delete(RRoleUserPO param) throws Exception {
		getSmcTemplate().update("RRoleUser.deleteRRoleUser", param);
	}
	
}
